import requst from "@/utils/request";
//获取收藏列表
export const getFavoriteList = () => {
    return requst({
        url: '/client/favorite/list',
        method: 'get'
    })
}
//加入收藏
export const addFavorite = (data: object) => {
    return requst({
        url: '/client/favorite/add',
        method: 'post',
        data: data
    })
}
//取消收藏
export const upFavorite = (data: object) => {
    return requst({
        url: '/client/favorite/up',
        method: 'put',
        data: data
    })
}